﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	mc:Ignorable="d"
	x:Class="UniPie.KeyboardMousePicker"
	x:Name="UserControl" Width="128" Height="96">

	<Grid x:Name="LayoutRoot">
		<VisualStateManager.VisualStateGroups>
			<VisualStateGroup x:Name="VisualStateGroup">
				<VisualState x:Name="Recording">
					<Storyboard>
						<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.BorderBrush).(SolidColorBrush.Color)" Storyboard.TargetName="listBox">
							<EasingColorKeyFrame KeyTime="0" Value="Red"/>
						</ColorAnimationUsingKeyFrames>
						<ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(SolidColorBrush.Color)" Storyboard.TargetName="listBox">
							<EasingColorKeyFrame KeyTime="0" Value="White"/>
						</ColorAnimationUsingKeyFrames>
					</Storyboard>
				</VisualState>
				<VisualState x:Name="Default"/>
			</VisualStateGroup>
		</VisualStateManager.VisualStateGroups>
		<ListBox x:Name="listBox" ItemsSource="{Binding KeyboardMouseCombo, ElementName=UserControl}" BorderThickness="1" Margin="0" Padding="0" Background="#FFC4C4C4" MouseLeave="DeactivateRecording" MouseLeftButtonUp="ActivateRecording" MouseRightButtonUp="ClearCombo" />
	</Grid>
</UserControl>